SET CONF=%2
IF "%CONF%"=="" SET CONF=Release

SET OUTPUT=..\Releases\TFS_Spotlight_v.%1\

md %OUTPUT%

c:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe ..\TfsSpotlight.sln /nologo /t:Build /verbosity:normal /consoleloggerparameters:NoItemAndPropertyList /p:Configuration=%CONF%;OutDir=%OUTPUT%

xcopy "..\TFS Libraries\*.dll" %OUTPUT% /Y /Q